#{extends 'main.html' /} #{set title:'Home' /} #{set 'moreStyles'}
<link rel="stylesheet" href="@{'/public/stylesheets/css3buttons.css'}">
#{/set}

<div id=main>
	<h2>${draft.subject}</h2>
	<p>
		<label><b>Subject: </b>
		</label>${draft.subject}
	</p>
	<p>
		<label><b>Body: </b>
		</label>${draft.body}
	</p>


<a href="@{DraftController.deleteDraft(draft.id)}" class="btn delete" onclick="return confirm('Are you sure you want to delete this draft?')"><span></span>Delete ${draft.subject}</a>
<a href="@{DraftController.editDraft(draft.id)}" class="btn edit" ><span></span>Edit ${draft.subject}</a><br/><br/><br/>


<u>Publishing Options:</u><br/>

<a href="@{DraftController.allEntities(draft.id)}" class="btn publish" ><span></span>Publish as a Topic</a>
<a href="@{Organizations.allOrgOfUserTopic(draft.id)}" class="btn publish" ><span></span>Publish to an Organization</a>
<a href="@{DraftController.allEntOfUserIdea(draft.id)}" class="btn publish" ><span></span>Publish to an Entity</a>
<a href="@{DraftController.allTopics(draft.id)}" class="btn publish" ><span></span>Publish to a Topic</a>
	

	

	
</div>